package com.culturalCenter.dataCenter.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class DateParam {
    @DateTimeFormat(pattern = "yyyy")
    @ApiModelProperty(value = "年",dataType = "Date")
    private Date year;
    @DateTimeFormat(pattern = "yyyy-MM")
    @ApiModelProperty(value = "年月",dataType = "Date")
    private Date month;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "年月日",dataType = "Date")
    private Date day;
}
